package cn.yitun.chat.yitunservercommonlib.basebean.web;


import lombok.Data;

import java.io.Serializable;

/**
 * jwt 用户
 */
@Data
public class JwtUserDto implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 用户uuid
     */
    private String userUuid;

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 过期时间
     */
    private long expireTime;

    /**
     * token
     */
    private String token;
    /**
     * ip
     */
    private String ip;
    /**
     * 用户数据范围
     */
    private String userScope;

    public JwtUserDto() {
    }
    public JwtUserDto(Long userId) {
        this.userId = userId;
    }

    public JwtUserDto(Long userId, String username, String nickName, long expireTime, String token) {
        this.userId = userId;
        this.username = username;
        this.nickName = nickName;
        this.expireTime = expireTime;
        this.token = token;
    }

}